<?php /* 顶部搜索 BEGIN */?>
<div class="topSearch">
    <form action="<?=Util_BaseUrls::finance_search_url()?>" method="post">
        <input class="iptSearch" name="search_text" type="text" placeholder="请输入关键字..." /><input class="btnSearch" type="submit" value=""/>
    </form>
</div>
<?php /* 顶部搜索 END */?>

<div class="p1">
    <?php /* 左侧导航 BEGIN */?>
    <div class="navL">
       <?php foreach($left_list as $t_cate=>$t_val){?>
        <a href="<?=Util_BaseUrls::finance_list_url($t_cate)?>" <?php if($cate==$t_cate){?>class="curr"<?php }?>><?=$t_val['html_name']?></a>
       <?php }?>
        <div class="phone">
            <span class="tit">财务部电话：</span><br>
            <span class="num">021-61821155-8808</span>
        </div>
        <a href="mailto:8808@anjuke.com" class="email" target="_blank" >我要提问</a>
    </div>
    <?php /* 左侧导航 END */?>

    <?php /* 右侧列表 BEGIN */?>
    <div class="p1R">
        <div class="r1d">
            <span><?php if($cate!=Const_Qa::TAG_FINANCE_BIAODAN){?>关于<?=$left_list[$cate]['name']?>的常见问题：<?php }else{?>常见的<?=$left_list[$cate]['name']?>：<?php }?></span>
            <?php if($permission && $cate==Const_Qa::TAG_FINANCE_BIAODAN){ ?>
            <a href="<?=Util_BaseUrls::finance_new_qa($cate)?>" target="_blank" >&nbsp;&nbsp;&nbsp;新增表单</a>
            <?}else if($permission){?>
            <a href="<?=Util_BaseUrls::finance_add_qa($cate)?>" target="_blank">&nbsp;&nbsp;&nbsp;新增问答</a>
            <?}?>
        </div>
        <ul class="r1u">
            <?php foreach ($list as $key => $v) {?>
                <li class="r1u_li">
                    <?php if($v[cate]==Const_Qa::TAG_FINANCE_BIAODAN){//表单下载部分?>
                    <a class="downloadLink r1u_a" href="<?=Util_BaseUrls::finance_download_qa($v['id'])?>"><?php echo (($page_num-1)*$page_rows+$key+1)."、".Util_Util::html_char_replace($v['title']);?></a>
                        <?php if($permission){//判断权限 ?>
                        <div style="float: right;" >
                            <a class="editLink" href="<?=Util_BaseUrls::finance_new_qa($cate,$v['id'])?>" target="_blank">&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;
                            <a class="deleteLink" href="<?=Util_BaseUrls::finance_delete_qa($v['id'])?>">&nbsp;</a>
                        </div>
                        <?}?>
                    <?}else{//问答部分?>
                    <a href="javascript:void(0)" class="foldLink r1u_a" qid="<?=$v['id']?>"><?php echo (($page_num-1)*$page_rows+$key+1)."、".Util_Util::html_char_replace($v['title']);?></a>
                    <?php if($permission){//判断权限 ?>
                    <div style="float: right;" >
                        <span>点击量：<span id="hits<?=$v['id']?>"><?=$v['hits']?></span>&nbsp;&nbsp;</span>
                        <a class="editLink" href="<?=Util_BaseUrls::finance_add_qa($cate,$v['id'])?>" target="_blank">&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;
                        <a class="deleteLink" href="<?=Util_BaseUrls::finance_delete_qa($v['id'])?>">&nbsp;</a>
                    </div>
                    <?}?>
                    <div class="d1" style="display: none">
                        <span class="r1uSpan"><?php echo Util_Util::html_char_replace($v['content']);?></span>
                        <i class="r1uI"></i>
                    </div>
                    <?}?>
                </li>
            <?}?>
        </ul>

        <div class="r1-pager">
             <?php $this->component('Qa_MultiPage', array('multipage'=>$multipage)); ?>
        </div>
    </div>
    <?php /* 右侧列表 END */?>

    <div class="clear"></div>
</div>
<?php $this->script_block_begin(); ?>
<script type="text/javascript">
var url_add_click = "<?php echo Util_BaseUrls::click_link_hits();?>";
</script>
<?php $this->script_block_end(); ?>
